//
//  TRGuideViewController.m
//  WeiMiLan
//
//  Created by anan on 14/11/6.
//  Copyright (c) 2014年 Mac. All rights reserved.
//

#import "TRGuideViewController.h"

@interface TRGuideViewController ()

@end

@implementation TRGuideViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)buttonNextAction:(id)sender
{
    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
}

#pragma mark - UIScrollViewDelegate
#pragma mark --UIScrollViewDelegate
- (void) scrollViewDidEndDecelerating:(UIScrollView *)scrollView
{
    int index = fabs(scrollView.contentOffset.x)/self.view.frame.size.width;
    
    self.pageControl.currentPage = index;
}

@end
